package com.examples.chartdirector.ui;

import java.awt.FlowLayout;

import javax.swing.JPanel;

import ChartDirector.ChartViewer;

public class ChartPanel {

	protected static int default_X_pixel = 650;
	protected static int default_Y_pixel = 450;

	protected static void showInCenter( JPanel chartContainer,ChartViewer viewer ) {
		JPanel panel = new JPanel(new FlowLayout());
		viewer.setOpaque(true);
		panel.add(viewer);

		chartContainer.removeAll();
		chartContainer.add(panel);
		chartContainer.getParent().getParent().validate();
	}
}
